package com.example.agriapp.util;

public class Constants {
    // 用户类型
    public static final String USER_TYPE_BUYER = "buyer";
    public static final String USER_TYPE_SELLER = "seller";
    
    // 订单状态
    public static final String ORDER_STATUS_PENDING = "pending";
    public static final String ORDER_STATUS_PROCESSING = "processing";
    public static final String ORDER_STATUS_SHIPPED = "shipped";
    public static final String ORDER_STATUS_COMPLETED = "completed";
    public static final String ORDER_STATUS_CANCELLED = "cancelled";
    
    // 消息类型
    public static final String MESSAGE_TYPE_TEXT = "text";
    public static final String MESSAGE_TYPE_IMAGE = "image";
    public static final String MESSAGE_TYPE_SYSTEM = "system";
    
    // 农友圈类型
    public static final String FRIEND_CIRCLE_ALL = "all";
    public static final String FRIEND_CIRCLE_FOLLOWING = "following";
    public static final String FRIEND_CIRCLE_MY = "my";
    
    // 默认图片
    public static final String DEFAULT_PRODUCT_IMAGE = "https://example.com/default_product.jpg";
    public static final String DEFAULT_AVATAR = "https://example.com/default_avatar.jpg";
    
    // 分页大小
    public static final int PAGE_SIZE = 10;
    
    // Intent 键
    public static final String INTENT_KEY_PRODUCT_ID = "product_id";
    public static final String INTENT_KEY_NEWS_ID = "news_id";
    public static final String INTENT_KEY_USER_ID = "user_id";
    public static final String INTENT_KEY_POST_ID = "post_id";
    public static final String INTENT_KEY_HTML_CONTENT = "html_content";
    
    // SharedPreferences 键
    public static final String SP_KEY_USER_ID = "user_id";
    public static final String SP_KEY_USER_NAME = "user_name";
    public static final String SP_KEY_USER_TYPE = "user_type";
    public static final String SP_KEY_USER_AVATAR = "user_avatar";
    public static final String SP_KEY_LOGIN_STATUS = "login_status";
    public static final String SP_KEY_TOKEN = "token";
    
    // 数据库操作结果
    public static final int DB_OPERATION_SUCCESS = 1;
    public static final int DB_OPERATION_FAILED = 0;
}